<template>
	<!-- 结算申请详情 -->
	<view class="bigbox pb150">
		<view class="">
			<view class="box-top flex boxr pl40 pt60 pb60 mt26">
				<!-- 左侧的盒子 -->
				<view class="box-top-l">
					<image src="~@/static/img/index/butieok2.png" class="w82 h82 mr40" v-if="subsidyDetail.status_text=='已通过'"></image>
					<image src="~@/static/img/index/butiebohui.png" class="w82 h82 mr40" v-if="subsidyDetail.status_text=='已驳回'"></image>
					<image src="~@/static/img/index/shenhe.png" class="w82 h82 mr40" v-if="subsidyDetail.status_text=='审核中'"></image>
					<!-- <image src="~@/static/img/index/14butieok.png" class="w82 h82 mr40"></image> -->
				</view>
				<!-- 右侧的盒子 -->
				<view class="box-top-r flex row-column row-between">
					<view class="box-top-r-tit">
						{{subsidyDetail.status_text}}
					</view>
					<view class="box-top-r-time">
						<text>审核时间：</text>
						<text>{{subsidyDetail.createtime}}</text>
					</view>
				</view>
			</view>
		</view>

		<view class=" boxr mt26 pt44 pl22 pb14">
			<view class="box-b-item mb52">
				<text>姓名：</text>
				<text>{{subsidyDetail.name}}</text>
			</view>
			<view class="box-b-item mb52">
				<text>性别：</text>
				<text>{{subsidyDetail.gender}}</text>
			</view>
			<view class="box-b-item mb52">
				<text>联系电话：</text>
				<text>{{subsidyDetail.iphone}}</text>
			</view>
			<!-- <view class="box-b-item mb52">
				<text>邮箱：</text>
				<text>{{subsidyDetail.email}}</text>
			</view> -->
			<view class="box-b-item mb52">
				<text>入职企业：</text>
				<text>{{subsidyDetail.induction_enterprise}}</text>
			</view>
			<view class="box-b-item mb52">
				<text>入职岗位：</text>
				<text>{{subsidyDetail.induction_post}}</text>
			</view>
			<view class="box-b-item mb52">
				<text>入职地点：</text>
				<text>{{subsidyDetail.induction_place}}</text>
			</view>
			<view class="box-b-item mb52">
				<text>入职时间：2021-02-13</text>
				<text>{{subsidyDetail.induction_time}}</text>
			</view>
			<!-- <view class="box-b-item mb52">
				<text>入职工时：</text>
				<text>{{subsidyDetail.induction_hours}}</text>
			</view> -->
			<view class="box-b-item mb52">
				<text>申请工时：</text>
				<text>{{subsidyDetail.induction_hours}}</text>
			</view>
			<view class="box-b-item mb52">
				<text>申请结算价：</text>
				<text>{{subsidyDetail.hours_piece}}</text>
			</view>
			<view class="box-b-item mb52">
				<text>申请结算额：</text>
				<text>{{subsidyDetail.settlement_amount}}</text>
			</view>
		</view>

		<!-- 结算详情盒子 -->
		<view class="boxr mt26 pt44 pl22 pb14" v-if="subsidyDetail.status_text=='已通过'">
			<view class="box-tit mb42">
				结算详情
			</view>
			<!-- <view class="box-b-item mb52">
				<text>申请结算额：</text>
				<text>￥{{subsidyDetail.settlement_amount}}</text>
			</view> -->
			<view class="box-b-item mb52">
				<text>技术服务费：</text>
				<text>{{subsidyDetail.service_fee}}%</text>
			</view>
			<view class="box-b-item mb52">
				<text>税票服务费：</text>
				<text>{{subsidyDetail.tax_fee}}%</text>
			</view>
			<view class="box-b-item mb52">
				<text>实际结算：</text>
				<text>￥{{subsidyDetail.settlement_fee}}</text>
			</view>
		</view>
		<!-- /结算详情盒子 -->
		
		<!-- 拒绝原因盒子 -->
		<view class="box-ref boxr mt26 pt44 pl22 pb14"  v-if="subsidyDetail.status_text=='已驳回'">
			<view class="box-ref-item mb34">
				<text>驳回原因：</text>
				<text>{{subsidyDetail.reject_reason}}</text>
			</view>
		<!-- 	<view class="box-ref-item mb34">
				<text>二次申请时间：</text>
				<text>2021-12-21   12:20:31</text>
			</view>
			<view class="box-ref-item mb34">
				<text>审核时间：</text>
				<text>2021-12-21   12:20:31</text>
			</view> -->
		</view>
		<!-- /拒绝原因盒子 -->
		
		<!-- 申请成功原因盒子 -->
		<!-- <view class="box-ref boxr mt26 pt44 pl22 pb14"  v-if="subsidyDetail.status_text=='已通过'">
			<view class="box-ref-item mb34">
				<text>通过原因：</text>
				<text>{{subsidyDetail.adopt_reason}}</text>
			</view>
			<view class="box-ref-item mb34">
				<text>审核时间：</text>
				<text></text>
			</view>
		</view> -->
		<!-- /申请原因盒子 -->
		
		<view class="box-b pt26 pb26 flex row-right" v-if="subsidyDetail.status_text!='已通过'">
			<!-- <view class="box-btn mr42 mb20">
				取消申请
			</view> -->
			<view class="box-btn mr42 mb20" @click="gotosubsidy">
				修改申请
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:'subsidyDetail',
		data() {
			return {
				blue_id:'',
				subsidyDetail:{}
			};
		},
		onLoad(e) {
			this.blue_id=e.blue_id
			console.log(e)
			//获取详情的方法
			this.getsubsidyDetails()
		},
		methods: {
			getsubsidyDetails() {
				this.$api.subsidyDetails({id:this.blue_id}).then(res=>{
					console.log(res)
					this.subsidyDetail=res.data
				})
			},
			gotosubsidy() {
				uni.navigateTo({
					url:'/pages/home/subsidy/subsidy?id='+this.blue_id
				})
			}
		},
	}
</script>

<style lang="scss">
	.box-top {
		.box-top-r {
			.box-top-r-tit {
				font-size: 30rpx;
				color: #0C162E;
			}

			.box-top-r-time {
				text {
					font-size: 30rpx;
					font-weight: 700;
					color: #0C162E;
				}
			}
		}
	}

	.box-b-item {
		text {
			font-size: 30rpx;
			font-weight: 500;
			color: #0C162E;
		}
	}

	.box-b {
		width: 100%;
		background-color: #fff;
		position: fixed;
		left: 0;
		bottom: 0;

		.box-btn {
			width: 200rpx;
			height: 50rpx;
			border: 2rpx solid #1385FF;
			border-radius: 10rpx;
			font-size: 24rpx;
			font-weight: 500;
			color: #1385FF;
			text-align: center;
			line-height: 50rpx;
		}
	}
	.box-tit {
		font-size: 30rpx;
		color: #1385FF;
	}
	.box-ref {
		.box-ref-item {
				text {
					font-size: 30rpx;
					font-weight: 500;
					color: #6D788B;
				}
		}
	}
</style>
